package com.weipai.springboot.module.mapper;

import com.weipai.springboot.model.InventoryIn;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface InventoryInMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(InventoryIn record);

    int insertSelective(InventoryIn record);

    InventoryIn selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(InventoryIn record);

    int updateByPrimaryKey(InventoryIn record);

    List<Map<String, Object>> listInDetail(@Param("categoryId") String categoryId, 
                                           @Param("start") Integer start, 
                                           @Param("size") Integer size,
                                           @Param("search") String search);

    int countIn(@Param("categoryId") String categoryId,
                @Param("search") String search);
}